
/**
 * Written by :
 * @author Floz
 * www.floz.fr || www.minuit4.fr
 */
package basicScene 
{
	import flash.display.Sprite;
	import fr.tilzy.common.materials.ColorMaterial;
	import fr.tilzy.common.materials.WireColorMaterial;
	import fr.tilzy.core.layers.LayerEnum;
	import fr.tilzy.isometric.IsoWorld;
	import fr.tilzy.isometric.objects.primitives.IsoBox;
	
	public class BasicScene extends Sprite
	{
		
		// - PRIVATE VARIABLES -----------------------------------------------------------
		
		// - PUBLIC VARIABLES ------------------------------------------------------------
		
		// - CONSTRUCTOR -----------------------------------------------------------------
		
		public function BasicScene() 
		{
			var world:IsoWorld = new IsoWorld();
			world.showGrid = true;
			world.addLayer( LayerEnum.MOBILES.id );
			addChild( world );
			
			var box:IsoBox = new IsoBox( new WireColorMaterial( 0xff00ff, 1, 0x000000 ) );
			world.addObject( box, LayerEnum.MOBILES.id );
			
			world.x = stage.stageWidth >> 1;
			world.y = stage.stageHeight >> 1;
		}
		
		// - EVENTS HANDLERS -------------------------------------------------------------
		
		// - PRIVATE METHODS -------------------------------------------------------------
		
		// - PUBLIC METHODS --------------------------------------------------------------
		
		// - GETTERS & SETTERS -----------------------------------------------------------
		
	}
	
}